﻿<%@ Control Language="C#" AutoEventWireup="true" CodeBehind="ucTheLoai.ascx.cs" Inherits="Indochinaodyssey.UserControl.Tour_Sapa.ucTheLoai" %>
<asp:ObjectDataSource ID="odsTheLoaiTour" runat="server" SelectMethod="TheLoai_getTheLoaiByDanhMucId"
    TypeName="IOBusiness.ClassLinq.clsLqTheLoai">
    <SelectParameters>
        <asp:Parameter DefaultValue="3" Name="idDanhMuc" Type="Int32" />
    </SelectParameters>
</asp:ObjectDataSource>
<asp:DataList ID="DataList1" runat="server" DataSourceID="odsTheLoaiTour" Width="95%">
    <ItemTemplate>
        <table align="center" border="0" cellpadding="0" cellspacing="0" style="border-bottom: #1f9b23 2px solid;"
            width="95%">
            <tr>
                <td height="41">
                    <span class="title2">
                        <asp:Label ID="TenTheLoaiLabel" runat="server" Text='<%# Eval("TenTheLoai") %>' />
                    </span>
                </td>
            </tr>
        </table>
        <asp:HiddenField ID="hlIdTheLoai" runat="server" Value='<%# Eval("ID") %>' />
        <br />
        <telerik:RadListView ID="RadListView1" runat="server" AllowPaging="True" DataSourceID="odsTour">
            <ItemTemplate>
                <table border="0" cellpadding="0" cellspacing="0" width="100%">
                    <tbody>
                        <tr>
                            <td colspan="2" style="padding: 5px 5px 5px 5px;" valign="top">
                                <a class="link_title" href='?tourid=<%# Eval("ID") %>&catid=3'>
                                    <%# Eval("TieuDe") %></a>
                            </td>
                        </tr>
                        <tr>
                            <td style="padding: 5px 5px 5px 5px;" valign="top" width="107">
                                <img height="80" src='Images/HinhAnh/<%# Eval("HinhAnh") %>' width="100"> </img>
                            </td>
                            <td>
                                <table border="0" cellpadding="0" cellspacing="0" width="100%">
                                    <tbody>
                                        <tr>
                                            <td>
                                                <p class="MsoNormal" style="margin: 0in 0in 0pt" align="justify">
                                                    <span style="font-size: 10pt; font-family: Arial">
                                                        <%# Eval("Summany")%>
                                                    </span>
                                                </p>
                                            </td>
                                        </tr>
                                        <tr>
                                            <td>
                                            </td>
                                        </tr>
                                        <tr>
                                            <td>
                                                <div align="right">
                                                    <a class="Details" href='sapa-tour.aspx?tourid=<%# Eval("ID") %>&catid=3'>Details</a>|&nbsp;&nbsp;<a
                                                        class="Details" href='book-this-tour.aspx?page=tour&tourid=<%#Eval("id")%>&amp;name=<%#Eval("TieuDe") %>'>Book
                                                        now</a></div>
                                            </td>
                                        </tr>
                                    </tbody>
                                </table>
                            </td>
                        </tr>
                    </tbody>
                </table>
            </ItemTemplate>
        </telerik:RadListView>
        <asp:ObjectDataSource ID="odsTour" runat="server" SelectMethod="Tour_getByTheLoai"
            TypeName="IOBusiness.ClassLinq.clsLqTours">
            <SelectParameters>
                <asp:ControlParameter ControlID="hlIdTheLoai" Name="idTheLoai" PropertyName="Value"
                    Type="Int32" />
            </SelectParameters>
        </asp:ObjectDataSource>
    </ItemTemplate>
</asp:DataList>
